package com.api.shopapi.service;


import com.api.shopapi.entity.Role;
import com.api.shopapi.entity.dto.RoleDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface RoleService {

    int insert(Role role);

    int deleteByRoleCode(String roleCode);

    int updateByRoleCode(Role role);

    Role getByRoleCode(String roleCode);

    Role getByName(String name);

    List<Role> getList();

    PageInfo<Role> getPageInfo(int pageIndex, int pageSize);

    PageInfo<RoleDTO> getPageInfoRoleDTO(int pageIndex, int pageSize);

}
